<include file="public/header"/>
<style>

</style>
<body style="background:#eee">
<header>
  <div class="tab_nav">
    <div class="header">
      <div class="h-left"><a class="sb-back" href="javascript:history.back(-1)" title="返回"></a></div>
      <div class="h-mid">{$title}</div>
      <div class="h-right">
        <aside class="top_bar">
          <div onClick="show_menu();$('#close_btn').addClass('hid');" id="show_more"><a href="javascript:;"></a> </div>
        </aside>
      </div>
    </div>
  </div>
</header>
<include file="public/menu"/>
 <ul class="il_list all_score" id="J_il_list_1">
    	<if condition="$type eq 'recharge'">
            <foreach name="account_log" item="vo">
                <li class="list_add J_add">
                    <div class="td_l">
                        <p>金额: <neq name="vo['user_money']" value="0">{$vo.user_money}<else/>{$vo.share_money}</neq></p>
                        <!--<p>积分:{$vo.pay_points}</p>-->
                    </div>
                    <div class="td_r">
                        <p class="il_money">{$vo.desc}</p>
                        <p class="time">{$vo.change_time|date='Y-m-d',###}</p>
                    </div>
                </li>
            </foreach>
       	<elseif condition="$type eq 'all'"/>
           <foreach name="account_log" item="vo">
            <li class="list_add J_add">
                <div class="td_l">
                    <p>收益金额: {$vo.share_money}</p>
                    <!--<p>积分:{$vo.pay_points}</p>-->
                </div>
                <div class="td_r">
                    <p class="il_money">{$vo.desc}</p>
                    <p class="time">{$vo.change_time|date='Y-m-d',###}</p>
                </div>
            </li>
            </foreach>
        <else/>
            <foreach name="account_log" item="vo">
                <li class="list_add J_add">
                    <div class="td_l">
                        <!--<p>余额: {$vo.user_money}</p>-->
                        <p>积分:{$vo.pay_points}</p>
                    </div>
                    <div class="td_r">
                        <p class="il_money">{$vo.desc}</p>
                        <p class="time">{$vo.change_time|date='Y-m-d',###}</p>
                    </div>
                </li>
            </foreach>
        </if>                  
    </ul>
	<notempty name="account_log">             
        <!-- 下滑加载无更多样式 S-->
        <div id="getmore" style="font-size:.24rem;text-align: center;color:#888;padding:.25rem .24rem .4rem; clear:both">
                <a href="javascript:void(0)" onClick="ajax_sourch_submit()">点击加载更多</a>
        </div>
        <!-- 下滑加载无更多样式 E-->
	</notempty> 
    <include file="public/footer_nav"/>
    </body>
</html>
<script>
var  page = 1;
 /*** ajax 提交表单 查询订单列表结果*/  
 function ajax_sourch_submit()
 {           
        page += 1;
        $.ajax({
            type : "GET",
            url:"/index.php?m=Mobile&c=User&a=points_list&is_ajax=1&type={$type}&p="+page,//+tab,                        
//          url:"{:U('Mobile/User/points',null,'')}/is_ajax/1/p/"+page,//+tab,
//          data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
            success: function(data)
            {
                if($.trim(data) == '')
                    $('#getmore').hide();
                else
                    $("#J_il_list_1").append(data);
            }
        }); 
 }

    
</script>         